#pragma once
#include "DesktopDlg.h"
#include "afxwin.h"


// CAreaDlg dialog

class CAreaDlg : public CDialog
{
	DECLARE_DYNAMIC(CAreaDlg)

public:
	CAreaDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CAreaDlg();
	//void setAreaInfo(const vector<areaInfo>& vAreaInfo){m_vAreaInfo = vAreaInfo;};

// Dialog Data
	enum { IDD = IDD_AREADLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void showPicture();

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedChgaccount();
public:
	afx_msg void OnBnClickedButton2();
public:
	CString m_idStr;
public:
	CString m_Name;
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
public:
	virtual BOOL OnInitDialog();
protected:
	virtual void OnOK();
	virtual void OnCancel();
	void hitDesk(int nSelDesk);
private:
	UINT_PTR m_timer;
	CString m_timerStr;
	CDesktopDlg m_DesktopDlg;
	//vector<areaInfo> m_vAreaInfo;
	int m_selArea;
private:
	CComboBox m_areaCom;
	afx_msg void OnCbnSelchangeAreaCombo();
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
	afx_msg void OnPaint();
public:
	CStatic m_picture;
public:
	CString m_strComName;
public:
	int m_nDesktopCount;
public:
	int m_nFreeCount;
public:
	int m_nPreserveCount;
public:
	int m_nBusyCount;
public:
	float m_fAttendance;
public:
	afx_msg void OnCbnDropdownAreaCombo();
};
